package com.xuecheng.api.media.model.api;

import com.xuecheng.api.media.model.aliyun.VodUploadRequest;
import com.xuecheng.api.media.model.aliyun.VodUploadToken;
import com.xuecheng.api.media.model.dto.MediaDTO;
import com.xuecheng.api.media.model.vo.MediaVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Api("媒资Api")
public interface MediaApi {


    @ApiImplicitParam(name = "vo",value = "媒资对象",required = true,paramType = "body")
    @ApiOperation("保存媒体信息")
    MediaDTO createMedia(MediaVO vo);


    @ApiImplicitParams(
        {@ApiImplicitParam(name = "params",value = "分页对象",required = true,paramType = "query"),
    @ApiImplicitParam(name = "vo",value = "查询参数对象",required = true,paramType = "body")})
    @ApiOperation("查询媒体信息")
    PageVO<MediaDTO> queryMedia(PageRequestParams params,MediaVO vo);


    @ApiImplicitParam(name = "mediaId",value = "媒体对象id",required = true,paramType = "query")
    @ApiOperation("删除媒体信息")
    void removeMedia(int mediaId);




}